<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台--文章管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>images/style.css" />
    <base target="_self"/>

    <script src='<?php echo isset($skin)?$skin:"";?>js/jquery.min.js'></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/jquery.form.min.js"></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/dist/dialog-min.js"></script>
    <script src="<?php echo isset($skin)?$skin:"";?>js/admin.js"></script>
    <script type="text/javascript">
        <!--
        $(document).ready(function () {
            $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
        });
        //-->
    </script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>/js/validate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate-plugin.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/form.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artDialog.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/iframeTools.js"></script>
<link rel="stylesheet" href="<?php echo isset($skin)?$skin:"";?>js/artdialog.css" type="text/css">
</head>
<body>
<div class="hh6"></div>
<table class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<thead>
<tr class="n_bt"><td colspan="8" align="center">爱不语商城系统</td></tr>
  <tr>
    <td height="28" align="center"  class="thbt">姓名</td>
    <td height="28" align="center"  class="thbt">送餐时间</td>
    <td height="28" align="center"  class="thbt">金额</td>
    <td height="28" align="center"  class="thbt">订单详情</td>

  </tr></thead>
<?php if(is_array($data))  foreach($data as $k=>$v) { ?>
    <tr align="center" >
      <td height="20"><?php echo isset($v[0]->nickname)?$v[0]->nickname:"";?></td>
      <td><?php echo date('Y-m-d H:i:s',$k);?></td>
      <td><?php echo isset($v[0]->order_amount)?$v[0]->order_amount:"";?>元</td>
      <td class="artlist"><a class="print b" href="?c=order&a=sprint&id=<?php echo isset($id)?$id:"";?>&time=<?php echo isset($k)?$k:"";?>">打印</a>
      <?php if($v[0]->is_send){?><a class="p">已配送</a><?php }else{?><a href="?c=order&a=is_send&id=<?php echo isset($id)?$id:"";?>&time=<?php echo isset($k)?$k:"";?>" class="h">等待配送</a><?php }?> </td>
    </tr>
  <?php if(is_array($v))  foreach($v as $cv) { ?>
  <tr align="center" >
    <td></td>
    <td></td>
    <td></td>
    <td><?php echo isset($cv->name)?$cv->name:"";?>*<?php echo isset($cv->goods_nums)?$cv->goods_nums:"";?></td>
  </tr>
  <?php }?>
    <?php }?>
</table>
<div class="pages"><?php echo isset($pagelist)?$pagelist:"";?></div>
<script type="text/javascript">
    <!--
    $(document).ready(function () {
        $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
    });
    //-->
</script>
</body>
</html>